package com.wangcanxuan.www.entity.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.Table;

/**
 * 点赞实体类与数据库like表一一映射
 *
 * @author HHLJ
 * @date 2022/03/29
 */
@Table(tableName = "like")
public class Like {
    @Column(columnName = "id",description = "主键")
    private String id;

    @Column(columnName = "user_id",description = "点赞人id")
    private String userId;

    @Column(columnName = "liked_user_id",description = "主键")
    private String likedUserId;

    public Like() {
    }

    public Like(String id, String userId, String likedUserId) {
        this.id = id;
        this.userId = userId;
        this.likedUserId = likedUserId;
    }

    public Like(String userId, String likedUserId) {
        this.userId = userId;
        this.likedUserId = likedUserId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLikedUserId() {
        return likedUserId;
    }

    public void setLikedUserId(String likedUserId) {
        this.likedUserId = likedUserId;
    }
}
